package com.itheima.mapper;

import com.itheima.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("SELECT * from roles r,user_role ur where r.id=ur.rid and ur.uid=#{id}")
    List<Role> findByUid(int id);
}
